﻿@using Security;
@{
    ViewBag.Title = "Password Generator";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm("ShowPassword", null))
{
    <div>
        Password: @Html.TextBox("password")</div>
    <div>
        @Html.CheckBox("disableAlphabet") @Html.Label("disableAlphabet", "No Alphabet")
        @Html.CheckBox("disableNumber") @Html.Label("disableNumber", "No Number")
        @Html.CheckBox("disableSymbol") @Html.Label("disableSymbol", "No Symbol")
    </div>
    <input type="submit" value="Generate" />
    <script type="text/javascript">
        window.setTimeout(function () {
            var e = document.getElementById('password');
            if (e) e.focus();
        });
    </script>
}